source_files = list.c user_io.c user_threads.c user_mutex.c threads_queue.c
object_files = list.o user_io.o user_threads.o user_mutex.o threads_queue.o

libiuthreads.a: $(source_files)

	cp /usr/src/trunk/hw3/user_threads* . 
	cp /usr/src/trunk/hw3/user_mutex* .
	cp /usr/src/trunk/hw3/list* .
	cp /usr/src/trunk/hw3/user_common_inner* .
	cp /usr/src/trunk/hw3/threads_queue* .
	cp /usr/src/trunk/hw3/user_io* .

	gcc -c -Werror -DNDEBUG  $(source_files)
	ar rsc libuthreads.a $(object_files)

	gcc *.c libuthreads.a -orunMe
	./runMe

